package com.sql.weeego.bean.base;

/**
 * UchomeVisitorId entity. @author MyEclipse Persistence Tools
 */

public class UchomeVisitorId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private Integer vuid;

	// Constructors

	/** default constructor */
	public UchomeVisitorId() {
	}

	/** full constructor */
	public UchomeVisitorId(Integer uid, Integer vuid) {
		this.uid = uid;
		this.vuid = vuid;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getVuid() {
		return this.vuid;
	}

	public void setVuid(Integer vuid) {
		this.vuid = vuid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomeVisitorId))
			return false;
		UchomeVisitorId castOther = (UchomeVisitorId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getVuid() == castOther.getVuid()) || (this.getVuid() != null
						&& castOther.getVuid() != null && this.getVuid()
						.equals(castOther.getVuid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getVuid() == null ? 0 : this.getVuid().hashCode());
		return result;
	}

}